<template>
    <div>
        <div id="main" style="width: 600px; height: 400px"></div>
    </div>
</template>
<script>
    import * as echarts from "echarts";
import axios from "@/tool/axios";
export default {
    data() {
        return {}
    },
    methods: {
        async Tu(){
        let res = await axios.get('reports/type/1')
        var myChart = echarts.init(document.getElementById("main"));
        myChart.setOption(res.data);
     }
    },
    components:{},
    computed:{},
    watch:{},
    created() {
        this.Tu();
    },
}
</script>
<style lang="scss" scoped>
</style>